home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Tools / CleanupThreeOhViews < prev    next >
Encoding:
Text File  |  1996-04-03  |  4.5 KB  |  174 lines  |  [TEXT/MPS ]

  1. ###########################################################
  2. # Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3. #
  4. # Clean up de-rezzed views
  5. #    originally authored by Curtis Faith, used by permission.
  6. #
  7. # Modification History
  8. # 7-29-91    csk        modified to support 3.0 'View' clean up
  9. ###########################################################
  10.  
  11.  
  12. set exit 0
  13. IF "{1}" == ""     
  14.     target `GetFileName -b "Get" -m "View File to Cleanup"`
  15. else    
  16.     target "{1}"
  17. end
  18. if {status} == 0
  19.     find •
  20.     replace -c ∞ /[∂t]+/ ''
  21. else
  22.     set exit 1
  23.     exit
  24. end
  25.  
  26. find •
  27. replace -c ∞ /∂/∂*≈∂*∂// ""
  28.  
  29. find •
  30. replace -c ∞ /MAThreeOh,/ "MAThreeOh,ß∂n∂t∂t"
  31. find •
  32. replace -c ∞ /NoSubviews/ "ß∂n∂t∂tNoSubviews"
  33. find •
  34. replace -c ∞ /handlesHelp,/ "ß∂n∂t∂thandlesHelp,"
  35. find •
  36. replace -c ∞ /doesntHandleHelp,/ "ß∂n∂t∂tdoesntHandleHelp,"
  37. find •
  38. replace -c ∞ /ToBeTarget,/ "ToBeTarget,ß∂n∂t∂t"
  39. find •
  40. replace -c ∞ /FirstClick,/ "FirstClick,ß∂n∂t∂t∂t"
  41. find •
  42. replace -c ∞ /orceOnScreen,/ "orceOnScreen,ß∂n∂t∂t∂t"
  43.  
  44. find •
  45. replace -c ∞ /ViewSignatureAndClassname / "ß∂n∂tViewSignatureAndClassnameß∂n∂t∂t"
  46.  
  47. find •
  48. replace -c ∞ /NoDrawingEnvironment/ "ß∂n∂t∂tNoDrawingEnvironment"
  49. find •
  50. replace -c ∞ /DrawingEnvironmentLocalObject/ "ß∂n∂t∂tDrawingEnvironmentLocalObject"
  51. find •
  52. replace -c ∞ /DrawingEnvironmentClassIDAndClassname/ "ß∂n∂t∂tDrawingEnvironmentClassIDAndClassname"
  53. find •
  54. replace -c ∞ /DrawingEnvironmentSignatureAndClassname/ "ß∂n∂t∂tDrawingEnvironmentSignatureAndClassname"
  55.  
  56. find •
  57. replace -c ∞ /NoAdorners/ "ß∂n∂t∂tNoAdorners"
  58. find •
  59. replace -c ∞ /AdornerListLocalObject/ "ß∂n∂t∂tAdornerListLocalObject"
  60. find •
  61. replace -c ∞ /AdornerListClassIDAndClassname/ "ß∂n∂t∂tAdornerListClassIDAndClassname"
  62. find •
  63. replace -c ∞ /AdornerListSignatureAndClassname/ "ß∂n∂t∂tAdornerListSignatureAndClassname"
  64.  
  65. find •
  66. replace -c ∞ /AdornFirst/ "ß∂n∂t∂t∂tAdornFirst"
  67. find •
  68. replace -c ∞ /AdornBefore/ "ß∂n∂t∂t∂tAdornBefore"
  69. find •
  70. replace -c ∞ /DrawView/ "ß∂n∂t∂t∂tDrawView"
  71. find •
  72. replace -c ∞ /AdornAfter/ "ß∂n∂t∂t∂tAdornAfter"
  73. find •
  74. replace -c ∞ /AdornLast/ "ß∂n∂t∂t∂tAdornLast"
  75.  
  76. find •
  77. replace -c ∞ /∂nIncludeAt ∂{/ "∂nß∂n∂t∂tIncludeAt ∂{"
  78. find •
  79. replace -c ∞ /∂nDefaultView ∂{/ "∂nß∂n∂t∂tDefaultView ∂{"
  80. find •
  81. replace -c ∞ /∂nWindow ∂{/ "∂nß∂n∂t∂tWindow ∂{"
  82. find •
  83. replace -c ∞ /∂nFloatWindow ∂{/ "∂nß∂n∂t∂tFloatWindow ∂{"
  84. find •
  85. replace -c ∞ /∂nScroller ∂{/ "∂nß∂n∂t∂tScroller ∂{"
  86. find •
  87. replace -c ∞ /∂nDialogView ∂{/ "∂nß∂n∂t∂tDialogView ∂{"
  88. find •
  89. replace -c ∞ /∂nTargetBorderView ∂{/ "∂nß∂n∂t∂tTargetBorderView ∂{"
  90. find •
  91. replace -c ∞ /∂nControl ∂{/ "∂nß∂n∂t∂tControl ∂{"
  92. find •
  93. replace -c ∞ /∂nButton ∂{/ "∂nß∂n∂t∂tButton ∂{"
  94. find •
  95. replace -c ∞ /∂nCheckBox ∂{/ "∂nß∂n∂t∂tCheckBox ∂{"
  96. find •
  97. replace -c ∞ /∂nRadio ∂{/ "∂nß∂n∂t∂tRadio ∂{"
  98. find •
  99. replace -c ∞ /∂nScrollBar ∂{/ "∂nß∂n∂t∂tScrollBar ∂{"
  100. find •
  101. replace -c ∞ /∂nScrollerScrollBar ∂{/ "∂nß∂n∂t∂tScrollerScrollBar ∂{"
  102. find •
  103. replace -c ∞ /∂nCluster ∂{/ "∂nß∂n∂t∂tCluster ∂{"
  104. find •
  105. replace -c ∞ /∂nIcon ∂{/ "∂nß∂n∂t∂tIcon ∂{"
  106. find •
  107. replace -c ∞ /∂nSmallIcon ∂{/ "∂nß∂n∂t∂tSmallIcon ∂{"
  108. find •
  109. replace -c ∞ /∂nPattern ∂{/ "∂nß∂n∂t∂tPattern ∂{"
  110. find •
  111. replace -c ∞ /∂nPicture ∂{/ "∂nß∂n∂t∂tPicture ∂{"
  112. find •
  113. replace -c ∞ /∂nPopup ∂{/ "∂nß∂n∂t∂tPopup ∂{"
  114. find •
  115. replace -c ∞ /∂nStaticText ∂{/ "∂nß∂n∂t∂tStaticText ∂{"
  116. find •
  117. replace -c ∞ /∂nEditText ∂{/ "∂nß∂n∂t∂tEditText ∂{"
  118. find •
  119. replace -c ∞ /∂nNumberText ∂{/ "∂nß∂n∂t∂tNumberText ∂{"
  120. find •
  121. replace -c ∞ /∂nTEView ∂{/ "∂nß∂n∂t∂tTEView ∂{"
  122. find •
  123. replace -c ∞ /∂nTabTEView ∂{/ "∂nß∂n∂t∂tTabTEView ∂{"
  124. find •
  125. replace -c ∞ /∂nGridView ∂{/ "∂nß∂n∂t∂tGridView ∂{"
  126. find •
  127. replace -c ∞ /∂nTextGridView ∂{/ "∂nß∂n∂t∂tTextGridView ∂{"
  128. find •
  129. replace -c ∞ /∂nTextListView ∂{/ "∂nß∂n∂t∂tTextListView ∂{"
  130. find •
  131. replace -c ∞ /∂nOTHER ∂{/ "∂nß∂n∂t∂tOTHER ∂{"
  132. find •
  133. replace -c ∞ /∂nView ∂{/ "∂nß∂n∂t∂tView ∂{"
  134.  
  135. find •
  136. replace -c ∞ /([¬ß]«1»)®1[∂n]«1»/ '®1'
  137.  
  138. find •
  139. replace -c ∞ /([¬ß]«1»)®1[∂n]«1»/ '®1'
  140. find •
  141. replace -c ∞ /plain,0,∂{0x0,0x0,0x0∂},∂"∂"/ "systemFont"
  142. find •
  143. replace -c ∞ /plain,9,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont9"
  144. find •
  145. replace -c ∞ /plain,12,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont12"
  146. find •
  147. replace -c ∞ /plain,0,∂{0x0,0x0,0x0∂},∂"A∂"/ "applFont12"
  148. find •
  149. replace -c ∞ /∂{0x0,0x0,0x0∂}/ "black"
  150. find •
  151. replace -c ∞ /∂{0,0,0,0∂}/ "noInset"
  152. find •
  153. replace -c ∞ /∂{∂{/ "∂{∂{∂n∂n∂t"
  154. find •
  155. replace -c ∞ /∂},∂'/ "∂}, ∂n∂n∂t∂'"
  156. find •
  157. replace -c ∞ /∂}∂};/ "∂n∂t∂}∂n∂};"
  158. find •
  159. replace -c ∞ /,([¬ ])®1/ ", ®1"
  160. find •
  161. replace -c ∞ /∂};resource/ "∂};∂n∂nresource"
  162. find •
  163. replace -c ∞ /ß/ ""
  164.  
  165. find •
  166. replace -c ∞ /∂t∂t∂{∂n/ "∂t∂{∂n"
  167. set exit 1
  168. IF "{1}" == "-s"
  169.     save "{target}"
  170. end
  171. IF "{2}" == "-s"
  172.     save "{target}"
  173. end
  174.